#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
//void dayin(int a[], int sz)
//{
//	for (int b = 0; b < sz; b++)
//	{
//		printf("%d ", *a);
//		a++;
//	}
//}
//int main()
//{
//	int a[] = { 1,2,3,4,5,6,7,8,9,10 },sz;
//	sz = sizeof(a) / sizeof(a[0]);
//	dayin(a,sz);
//}



void nixu(char a[])
{
	int n,left=0,right;
	char* p = a;
	char m;
	while (*a != '\0')
	{
		a++;
	}
	n = a - p; 
	right = n-1;
	while (left < right)
	{
		m = a[left];
		a[left] = a[right];
		a[right] = m;
		left++;
		right--;
	}
}
int main()
{
	char a[] = "abcdef";
	nixu(a);
	printf("%s", a);
}